package com.ccb.sc.common.modules.shopkeeper.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseVersionEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 店主产品规格
 * </p>
 *
 * @author ken
 * @since 2020-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_shopkeeper_goods_specs")
public class ShopkeeperGoodsSpecs extends BaseVersionEntity {

    private static final long serialVersionUID=1L;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品规格
     */
    @TableField("goods_spec")
    private String goodsSpec;

    /**
     * 规格编码
     */
    @TableField("sku")
    private String sku;

    /**
     * 规格图片
     */
    @TableField("picture")
    private String picture;

    /**
     * 库存
     */
    @TableField("stock")
    private Integer stock;

    /**
     * 销量
     */
    @TableField("sales")
    private Integer sales;

    /**
     * 成本价格
     */
    @TableField("cost_price")
    private BigDecimal costPrice;

    /**
     * 市场价格
     */
    @TableField("market_price")
    private BigDecimal marketPrice;

    /**
     * 销售价格
     */
    @TableField("sale_price")
    private BigDecimal salePrice;

    /**
     * 奖励阳光值
     */
    @TableField("points")
    private BigDecimal points;

    /**
     * 排序号
     */
    @TableField("orders")
    private Integer orders;

    /**
     * 是否删除
     */
    @TableField("deleted")
    private Boolean deleted;
}
